﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("打包单主表")]
    [Table("t_packvoucher")]
    [Index(nameof(VoucherCode))]
    public class PackVoucher : VoucherBase
    {
        public PackVoucher(Guid id)
        {
            this.Id = id;
        }

        public PackVoucher()
        {

        }

        [Comment("一级库ID")]
        public Guid WarehouseId { get; set; }

        [Comment("一级库名称")]
        [MaxLength(50)]
        public string WarehouseName { get; set; }

        [Comment("二级库ID")]
        public Guid? DeptId { get; set; }

        [Comment("二级库名称")]
        [MaxLength(50)]
        public string DeptName { get; set; }
    }
}
